import request from '@/utils/request'

export function memberLevelList(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/level/list`,
    method: 'post',
    data: query
  })
}

export function memberLevelTable(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/level/table`,
    method: 'post',
    data: query
  })
}

export function memberLevelSelect(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/level/select`,
    method: 'post',
    data: query
  })
}

export function memberLevelLoad(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/level/load`,
    method: 'get',
    params: query
  })
}

export function memberLevelSave(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/level/save`,
    method: 'post',
    data: query
  })
}

export function memberLevelChange(id, type, query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/level/${id}/change/${type}`,
    method: 'post',
    data: query
  })
}

export function memberLevelDelete(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/level/delete`,
    method: 'post',
    data: query
  })
}

export function memberTable(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/manage/table`,
    method: 'post',
    data: query
  })
}

export function memberLoad(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/manage/load`,
    method: 'get',
    params: query
  })
}

export function memberSave(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/manage/save`,
    method: 'post',
    data: query
  })
}

export function memberDelete(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/manage/delete`,
    method: 'post',
    data: query
  })
}

export function boundsTable(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/bounds/table`,
    method: 'post',
    data: query
  })
}

export function boundsLoad(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/bounds/load`,
    method: 'get',
    params: query
  })
}

export function boundsSave(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/bounds/save`,
    method: 'post',
    data: query
  })
}

export function boundsDelete(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/member/bounds/delete`,
    method: 'post',
    data: query
  })
}
